package com.jbit.hxy.feign;

import com.jbit.hxy.common.Result;
import com.jbit.hxy.feign.fallback.UserFeignClientFallback;
import com.jbit.hxy.model.po.WxUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-service",fallback = UserFeignClientFallback.class)
public interface UserFeignClient {

    @GetMapping("/user/getUserByOpenId")
    Result<WxUser> getUserByOpenId(@RequestParam(value = "openid") String openid);
}
